


import json
from PyQt5.Qt import *
from PyQt5.Qt import QThread
from PyQt5 import QtCore
import cv2 
import threading
import time
import numpy as np
import imutils
import easyocr
import pyzbar.pyzbar as pyzbar
import modbus_tk.defines as cst
from modbus_tk import modbus_tcp, hooks
import numpy as np
import logging
import math

master = modbus_tcp.TcpMaster(host= '192.168.2.113')  # 192.168.20.13


while True:   
    master.execute(1,cst.WRITE_SINGLE_REGISTER, starting_address=500,output_value=10)   # 写命令  标记放置位置
    time.sleep(0.02)